import Vue from 'vue'
import Vuex from 'vuex'

import home from './home/index.js' // home仓库
import search from './search/index.js' // 搜索商品仓库
import detail from './detail/index.js' // 商品详情仓库
import carts from './carts/index.js' // 购物车仓库

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    carts
  }
})
